from typing import Optional
from attrs import define, field
from .models import SystemStatusResponse
from get_define.api_object import BaseAPIObject
from tools.router import router

__ALL__ = ["GetSystemStatusApiSystemStatusGetAPI"]


@define(kw_only=True)
@router.get("/api/system/status")
class GetSystemStatusApiSystemStatusGetAPI(BaseAPIObject[SystemStatusResponse]):
    """获取当前系统的运行状态，包括版本、运行时间、资源使用情况等"""

    response: Optional[SystemStatusResponse] = field(default=SystemStatusResponse)
    endpoint_id: Optional[str] = field(
        default="get_system_status_api_system_status_get"
    )
